a = 266
b = 209
while a - b > 0 or a - b < 0:
	if a > b:
		a = a- b
	else:
		b = b - a
	print(a,b)
	
